#!/bin/bash

# touch /aid/caddy/Caddyfile
# cp ~/stacks/caddy/Caddyfile-default /aid/caddy/Caddyfile

if [ -e /aid/caddy/Caddyfile ]; then
    echo "Caddyfile exists"
else
    echo "Caddyfile not exists & copy default"
    mkdir -p /aid/caddy
    cp ~/server-tools/ambition/stacks/caddy/Caddyfile-default /aid/caddy/Caddyfile
fi

if [ -e /aid/caddy/certs ]; then
    echo "certs exists"
else
    echo "certs not exists & copy"
    mkdir -p /aid/caddy
    cp -r ~/server-tools/ambition/stacks/caddy/certs /aid/caddy/certs
fi
